// my utils
layui.define(['layer'], function (exports) {
        var admin = layui.admin,
            layer = layui.layer;

        var obj = {
            test: function () {
                // alert(1)
            }
        };
        (function () {
            admin.req({
                url: layui.setter.hostAddr + '/portal/biinfo'
                , type: 'get'
                // , async: false
                , success: function (biMsg) {
                    layui.data('layuiAdmin', {
                        key: "biInfo"
                        , value: {
                            uid: biMsg.data.uid,
                            pwd: biMsg.data.pwd
                        }
                    });
                }, error: function (err) {
                    layer.msg('BI服务异常.', {
                        icon: 5,
                        time: 2000,
                    });
                }
            });
            // debugger


        })();
        //对外暴露的接口
        exports('myUtils', obj);
    }
)









